package com.supermap.desktop.develop.workspacemigration.migration.events;

import com.supermap.data.SteppedEvent;

public class MigrateSteppedEvent extends SteppedEvent {

    private final int subPercent;
    private final String subMessage;

    public MigrateSteppedEvent(Object source, int percent, int subPercent, long remainTime, String title, String message, String subMessage, String senderMethodName) {
        this(source, percent, subPercent, remainTime, title, message, subMessage, senderMethodName, false);
    }

    public MigrateSteppedEvent(Object source, int percent, int subPercent, long remainTime, String title, String message, String subMessage, String senderMethodName, boolean cancel) {
        super(source, percent, remainTime, title, message, senderMethodName, cancel);
        this.subPercent = subPercent;
        this.subMessage = subMessage;
    }

    public int getSubPercent() {
        return subPercent;
    }

    public String getSubMessage() {
        return subMessage;
    }
}
